package com.ly.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ly.base.ResponseData;
import com.ly.dto.CarInfoDto;
import com.ly.dto.CarOrderDto;
import com.ly.entity.Car;
import com.ly.entity.CarOrder;
import com.ly.param.CarAuditParam;
import com.ly.param.CarOrderAddParam;
import com.ly.param.CarOrderParam;
import com.ly.param.CarParam;

import java.security.Principal;
import java.util.List;

public interface CarOrderService {

    ResponseData addCarOrder(CarOrderAddParam carOrderAddParam, Principal principal);

    ResponseData updateCarOrder(CarOrder carOrder, Principal principal);

    Page<CarOrderDto> pageCarOrderList(CarOrderParam carOrderParam);

    ResponseData deleteCarOrder(String id);

    CarOrder findByCarOrderId(String id);

    List<CarOrder> findByOverdue();

    void updateCarOrderList(List<CarOrder> carOrders);

    ResponseData returnCar(String orderId, Principal principal);
}
